-- msg_post_new_comment_result
-- Created by cheny3 May/04/2016
-- 通知发布帖子结果

return function(lpc)
    local result = lpc.result;

    local failTips = {"operation_illage", "comment_illage"};
    if table.indexOf(failTips, result) < 0 then
        CommentM.changeNewPostRid(result);
        -- 发布成功
        result = "ok";
    end

    -- 抛一个事件
    EventMgr.fire(event.POST_NEW_COMMENT_RESULT, {["result"] = result, })
end
